// @FileName  :notation.c
// @Time      :2024/3/1 10:06
// @Author    :YKW
//# include <bits/stdc++.h>
//using namespace std;
# include <stdio.h>
# include <stdlib.h>
# include <math.h>
# include <string.h>
# include <stdlib.h>


int main() {
    char s[10086];
    int n=-1;
    scanf("%s",s);
    if (s[0] == '0') {//小于1
        char *p = s + 2;
        while (*p == '0') p++,n--;
        if (strlen(p) == 1) printf("%s", p);
        else {
            printf("%c.", *p++);
            printf("%s", p);
        }
    } else {
        char *p = s;
        while (*p != '.') p++,n++;
        printf("%c.", s[0]);
        for (int i = 1; i < strlen(s); i++)
            if (s[i] != '.') printf("%c", s[i]);
    }
    printf("e%d", n);
    return 0;
}